package org.assocsp3.dao.impl;

import java.util.List;

import org.assocsp3.dao.ActiviteDao;
import org.assocsp3.modele.Activite;
import org.springframework.stereotype.Component;

@Component
public class ActiviteDaoImpl extends PatronDaoImpl<Activite> implements ActiviteDao{

	public Activite findById(int id) {
		return (Activite) getHibernateTemplate().load(Activite.class,id);
	}

	@SuppressWarnings("unchecked")
	public List<Activite> findAll() {
		return getHibernateTemplate().loadAll(Activite.class);
	}

}
